package com.zhixin.fans.ks.ui.main.mutual;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import com.zhixin.fans.ks.R;
import com.zhixin.fans.ks.api.res.MutualTalk;

import java.util.List;

import android.support.annotation.Nullable;

public class MutualTalkAdapter extends BaseQuickAdapter<MutualTalk, BaseViewHolder> {
    public MutualTalkAdapter(@Nullable List<MutualTalk> data) {
        super(R.layout.item_mutual_talk, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MutualTalk item) {
        helper.setText(R.id.tv_talk_content, item.getContent());
        Glide.with(mContext).asBitmap().load(item.getHead_pic()).into((ImageView) helper.getView(R.id.img_user_header));

    }
}
